package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品做法管理对象 dish_recipe_management
 *
 * @author ruoyi
 * @date 2025-05-27
 */
public class DishRecipeManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 做法ID，主键，自增唯一标识 */
    private Long id;

    /** 做法分类，例如“烹饪方式”“口味调整”等，不允许为空 */
    @Excel(name = "做法分类，例如“烹饪方式”“口味调整”等，不允许为空")
    private String recipeCategory;

    /** 做法名称，例如“清蒸”“麻辣”“加辣”等，不允许为空 */
    @Excel(name = "做法名称，例如“清蒸”“麻辣”“加辣”等，不允许为空")
    private String recipeName;

    /** 加价方式，1=固定加价，2=百分比加价，3=不加价（默认固定加价） */
    @Excel(name = "加价方式，1=固定加价，2=百分比加价，3=不加价", readConverterExp = "默=认固定加价")
    private Integer priceAdjustmentType;

    /** 加价金额或百分比，根据加价方式决定：固定加价时为金额（元），百分比加价时为百分比（如5表示5%） */
    @Excel(name = "加价金额或百分比，根据加价方式决定：固定加价时为金额", readConverterExp = "元=")
    private BigDecimal priceAdjustmentValue;

    /** 状态标识，0=禁用，1=启用（默认启用），用于控制做法是否可用 */
    @Excel(name = "状态标识，0=禁用，1=启用", readConverterExp = "默=认启用")
    private Integer status;

    /** 排序字段，用于控制做法在前端展示的顺序，默认为0（数字越小越靠前） */
    @Excel(name = "排序字段，用于控制做法在前端展示的顺序，默认为0", readConverterExp = "数=字越小越靠前")
    private Long sortOrder;

    /** 记录创建时间，默认为当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间，默认为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间，默认为当前时间，更新时自动刷新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间，默认为当前时间，更新时自动刷新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 是否默认做法，0=非默认，1=默认（用于标记商品的标准做法） */
    @Excel(name = "是否默认做法，0=非默认，1=默认", readConverterExp = "用=于标记商品的标准做法")
    private Integer isDefault;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setRecipeCategory(String recipeCategory)
    {
        this.recipeCategory = recipeCategory;
    }

    public String getRecipeCategory()
    {
        return recipeCategory;
    }

    public void setRecipeName(String recipeName)
    {
        this.recipeName = recipeName;
    }

    public String getRecipeName()
    {
        return recipeName;
    }

    public void setPriceAdjustmentType(Integer priceAdjustmentType)
    {
        this.priceAdjustmentType = priceAdjustmentType;
    }

    public Integer getPriceAdjustmentType()
    {
        return priceAdjustmentType;
    }

    public void setPriceAdjustmentValue(BigDecimal priceAdjustmentValue)
    {
        this.priceAdjustmentValue = priceAdjustmentValue;
    }

    public BigDecimal getPriceAdjustmentValue()
    {
        return priceAdjustmentValue;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setSortOrder(Long sortOrder)
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder()
    {
        return sortOrder;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setIsDefault(Integer isDefault)
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault()
    {
        return isDefault;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("recipeCategory", getRecipeCategory())
                .append("recipeName", getRecipeName())
                .append("priceAdjustmentType", getPriceAdjustmentType())
                .append("priceAdjustmentValue", getPriceAdjustmentValue())
                .append("status", getStatus())
                .append("sortOrder", getSortOrder())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("remark", getRemark())
                .append("isDefault", getIsDefault())
                .append("phone", getPhone())
                .toString();
    }
}
